package com.wuhainan.beelzebub.utils;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * <br>Created by 吴海南 on 2017/12/24.
 * <br>星期日 at 14:16.
 */
public class PageInfo{
    private Integer page;//当前页码
    private Integer size;//页码尺寸
    private String sortName;//排序字段
    private String sortValue;//排序方式asc desc


    public Integer getPage() {
        return page-1;
    }

    public void setPage(Integer pi) {
        this.page = pi;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortValue() {
        return sortValue;
    }

    public void setSortValue(String sortValue) {
        this.sortValue = sortValue;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
